0a8977019cfb20b6cce84627c09ec28ee26bf65e,src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java,DomainValidator,isValidCountryCodeTld,#String#,208
Before Change
* @return true if the parameter is a country code TLD
*/
public boolean isValidCountryCodeTld(String ccTld) {
return Arrays.binarySearch(COUNTRY_CODE_TLDS, chompLeadingDot(ccTld.toLowerCase(Locale.ENGLISH))) >= 0;
}
/**
After Change
* @param ccTld the parameter to check for country code TLD status, not null
* @return true if the parameter is a country code TLD
*/
public boolean isValidCountryCodeTld(String ccTld) {
final String key = chompLeadingDot(unicodeToASCII(ccTld).toLowerCase(Locale.ENGLISH));
return (arrayContains(COUNTRY_CODE_TLDS, key) || arrayContains(countryCodeTLDsPlus, key))
&& !arrayContains(countryCodeTLDsMinus, key);
}
/**